﻿<UserControl x:Class="SLAdmin.UserControls.EditCondition"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"           
    xmlns:extended="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:liquid="clr-namespace:Liquid;assembly=Liquid"
    xmlns:images="clr-namespace:SLAdmin.Images"    
    xmlns:extensions="clr-namespace:SLExtensions.Controls;assembly=SLExtensions.Controls"    
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
             LayoutUpdated="UserControl_LayoutUpdated">
    <Grid x:Name="LayoutRoot" Style="{StaticResource MainDockBackground2}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="100"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="50"/>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130" />
                    <ColumnDefinition Width="1*"/>
                </Grid.ColumnDefinitions>
                <Image Grid.Column="0" Margin="10" Source="icons/condition_128.png" />
                <TextBox Grid.Column="1" Text="{Binding ConditionName, Mode=TwoWay}" Style="{StaticResource TextBoxMainHeadline}"/>
            </Grid>
            <Border Grid.Row="2" Style="{StaticResource BorderBottomPanel}">
                <Button x:Name="btnSave" 
                        Style="{StaticResource Button_Save}"                    
                        Click="btnSave_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="icons/filesave-32.png"/>
                        <TextBlock Margin="5,0,0,0"
                               VerticalAlignment="Center" 
                               Text="Save"/> 
                            </StackPanel>
                </Button>
            </Border>
            <extended:TabControl Grid.Row="1" x:Name="StudyTabs">
                <extended:TabItem Padding="5">
                    <extended:TabItem.Header>
                        <StackPanel Margin="5" Orientation="Horizontal">
                            <Image Source="icons/configure_32.png"/>
                            <TextBlock Text="General" 
                                   Style="{StaticResource TextBlockTabName}"
                                   />
                    </StackPanel>
                    </extended:TabItem.Header>
                    <extensions:DockPanel Style="{StaticResource DockMainTabPage}">                        
                        <ScrollViewer Style="{StaticResource ScrollViewerTabWindow}">
                            <StackPanel Orientation="Vertical">
                                
                            </StackPanel>
                        </ScrollViewer>
                    </extensions:DockPanel>
                </extended:TabItem>
            </extended:TabControl>
        </Grid>
    </Grid>    
</UserControl>
